// 监听来自页面的请求（如需双向通信）
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
    if (request.action === "getTables") {
        sendResponse({
            count: document.querySelectorAll('table').length
        });
    }
});